/*
 * Copyright (c) 2021.
 * @User: XiaoZhenRS
 * @QQ: 1419158026
 * @Gitee: gitee.com/XiaoZhengRS
 * @GitHub: github.com/XiaoZhengRS
 */

package com.xiaozhengkeji.colastartboot.config;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Component
@Slf4j
public class CorsInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;
    }
}
